package wiBase.baseUtil;

import wiBase.WiException;
import wiBase.WiObject;

public class Form extends WiObject{
	public static final int MODE_DEFAULT=0xFF;
	public static final int MODE_CIRCLE=0x00;
	public static final int MODE_SQUARE=0x01;
	public static final int MODE_LINE=0x02;
	public static final int MODE_DIAMOND=0x03;
	
	private int _form=MODE_DEFAULT;
	
	public Form(int mode){
		this._form=mode;
	}
	public int getForm(){
		return this._form;
	}
	public void setForm(int mode) throws WiException{
		if(this.isChangeable())
			this._form=mode;
		else
			throw new WiException(WiException.TYPE_CHANGEABLE, "this form can not changealbe!");
	}
	
}
